package de.coe.hendricjabs.friendmap.server;

import java.util.ArrayList;
import java.util.HashMap;

import de.coe.hendricjabs.friendmap.Contact;
import de.coe.hendricjabs.friendmap.ConversationTypes;

public class SingleResponse extends Response {

    private HashMap<String, String> coordinates;
    private String mobile;

    public SingleResponse() {
	super(ConversationTypes.CT_SINGLE);
	coordinates = new HashMap<String, String>();
	coordinates.put("longitude", "");
	coordinates.put("latitude", "");
    }

    public SingleResponse(ArrayList<Contact> c) {
	super(ConversationTypes.CT_SINGLE);
	coordinates = c.get(0).getCoordinates();
    }

    /**
     * s
     * 
     * @return the coordinates
     */
    public HashMap<String, String> getCoordinates() {
	return coordinates;
    }

    /**
     * @param coordinates
     *            the coordinates to set
     */
    public void setCoordinates(HashMap<String, String> coordinates) {
	this.coordinates = coordinates;
    }

    /**
     * @param longitude
     *            the longitude
     * @param latitude
     *            the latitude
     */
    public void setCoordinates(String longitude, String latitude) {
	this.coordinates.put("longitude", longitude);
	this.coordinates.put("latitude", latitude);
    }

    /**
     * @return the mobile
     */
    public String getMobile() {
	return mobile;
    }

    /**
     * @param mobile
     *            the mobile to set
     */
    public void setMobile(String mobile) {
	this.mobile = mobile;
    }

}
